package com.maxmind.domain;

import com.maxmind.db.MaxMindDbConstructor;
import com.maxmind.db.MaxMindDbParameter;

import lombok.Data;

/**
 * 类QueryResult的实现描述：请求结果
 *
 * @author sunyj 2025/3/21 13:57
 */
@Data
public class LookupBaseResult {

    private final CountryInfo country;

    private final ContinentInfo continent;

    private final LocationInfo location;

    @MaxMindDbConstructor
    public LookupBaseResult(
            @MaxMindDbParameter(name="country") CountryInfo country,
            @MaxMindDbParameter(name="continent") ContinentInfo continent,
            @MaxMindDbParameter(name="location") LocationInfo location) {
        this.country = country;
        this.continent = continent;
        this.location = location;
    }
}
